const { reactive } = Vue

export default function company() {
  const temp =  {
    template: '<div>Promise：{{person}}</div>',
    setup() {
      const person = reactive({
        name: 'composition API演示'
      })

      return {
        person
      }
    }
  }

  return new Promise((resolve, reject) => {
    axios.get('../../../cdnui/code/views/company.html').then((resHTML) => {
      temp.template = resHTML.data
      resolve(temp)
    })

    // resolve(temp)
  })
}